import { ApiProperty } from '@nestjs/swagger'
import { PickType } from '@nestjs/mapped-types'
import { Role } from 'src/modules/role/entities/role.entity'
import { RegisterUserDto } from './register-user.dto'

export class UpdateUserDto extends PickType(RegisterUserDto, ['email', 'captcha']) {
  @ApiProperty()
  headPic: string

  @ApiProperty()
  nickName: string

  roles?: Role[]
}
